package com.feicheng.lanniao.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.feicheng.lanniao.entity.Car;
import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.ICarConditionService;
import com.feicheng.lanniao.service.ICarService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author feichengTech
 * @since 2021-09-02
 */
@RestController
@RequestMapping("/lanniao-admin/car-condition")
public class CarConditionController {
	@Autowired
	private ICarConditionService carConditionService;
	/**
	 * 查询所有车龄
	 * @return 车龄集合
	 */
	@GetMapping("/all")
	public ResultInfo getCarConditions() {
		return ResultInfo.success(carConditionService.list());
	}
}

